import request from '@/utils/request'

// 查询入会申请记录列表
export function listAppMembership(query) {
  return request({
    url: '/business/appMembership/list',
    method: 'get',
    params: query
  })
}

export function listAppMembershipByMiniUserId(query) {
  return request({
    url: '/business/appMembership/listAppMembershipByMiniUserId',
    method: 'get',
    params: query
  })
}

// 查询入会申请记录详细
export function getAppMembership(id) {
  return request({
    url: '/business/appMembership/' + id,
    method: 'get'
  })
}

// 新增入会申请记录
export function addAppMembership(data) {
  return request({
    url: '/business/appMembership',
    method: 'post',
    data: data
  })
}

// 修改入会申请记录
export function updateAppMembership(data) {
  return request({
    url: '/business/appMembership',
    method: 'put',
    data: data
  })
}

// 删除入会申请记录
export function delAppMembership(id) {
  return request({
    url: '/business/appMembership/' + id,
    method: 'delete'
  })
}

export function auditSecondLaborUnion(data) {
  return request({
    url: '/business/appMembership/auditSecondLaborUnion',
    method: 'post',
    data: data
  })
}

export function auditFundCommittee(data) {
  return request({
    url: '/business/appMembership/auditFundCommittee',
    method: 'post',
    data: data
  })
}
